package com.ncucoder.soms.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;

import java.math.BigDecimal;

/**
 * 订单实体类
 *
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @date 2019-07-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Log4j2
@NoArgsConstructor
public class Order extends Base {
    /**
     * 唯一订单号
     * 时间 + 随机数 + 用户ID
     */
    private String code;
    private String product;
    private BigDecimal amount;
    private Boolean paid;
    private BigDecimal totalPrice;
    private Long userId;
    private Boolean deleted;

}